package com.i72.basic.consts;

public class Consts {

    /**
     * 服务注册中心地址     环境变量
     */
    public final static String GOVERNANCE_SERVER_ADDRESS = "GOVERNANCE_SERVER_ADDRESS";

    /**
     * 环境，参考EnvironmentEnum     环境变量
     */
    public final static String ENVIRONMENT_TYPE = "ENVIRONMENT_TYPE";

    /**
     * 服务对应的包名，存储在服务中心
     */
    public final static String SERVICE_PACKAGE = "SERVICE_PACKAGE";

    /**
     * 刷新间隔。存储在服务中心
     */
    public final static String REFRESH_TIMESPAN = "REFRESH_TIMESPAN";

    /**
     * 默认服务中心的地址配置
     */
    public final static String GOVERNANCE_DEFAULT_CONFIG_PATH = "/META-INF/governance.yml";

    /**
     * 默认LOGBACK的配置文件，当应用存在配置文件时则采用应用的，没有则采用默认配置文件
     */
    public final static String LOGBACK_DEFAULT_CONFIG_PATH = "/META-INF/logback.xml";

    /**
     * appName 的 key        application.yml
     */
    public final static String GOVERNANCE_SERVER_SERVICENAME = "governance.service.serviceName";

    /**
     * 订阅的服务的key        application.yml
     */
    public final static String GOVERNANCE_SERVER_SUBSCRIBE = "governance.service.subscribeServices";

    /**
     * 需要扫描的service包，用来生成代理，默认只扫描包下接口
     */
    //public final static String GOVERNANCE_SERVER_PACKAGE = "governance.service.package";

    public final static String SANC_BASE_PACKAGE = "com.i72";

    public final static String VALIDATE_FORM_ERROR_MESSAGE = "validateFormErrorMessage";

}
